package com.tianqu.tms.entity;

import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dao.TmsDao;
import com.tianqu.tms.dao.TmsTransferFinanceDetailDao;
import com.tianqu.tms.dao.TmsTransferFinanceDetailDaoImp;
import com.tianqu.tms.dto.TransferFinanceDetailDto;

public class TransferFinance extends ViewListManager {

	public List<TransferFinanceDetailDto> getTransferFinanceList(String serial) throws TmsDaoException {
		TmsTransferFinanceDetailDao dao = (TmsTransferFinanceDetailDaoImp) TmsDao.getInstance(TmsDao.TMS_TRANSFER_FINANCE_DETAIL);
		return dao.findTransferFinanceDetails(serial);
	}
	
	public List<TransferFinanceDetailDto> getTransferFinanceList(String serial,String priceWay,String priceType) throws TmsDaoException {
		TmsTransferFinanceDetailDao dao = (TmsTransferFinanceDetailDaoImp) TmsDao.getInstance(TmsDao.TMS_TRANSFER_FINANCE_DETAIL);
		return dao.findTransferFinanceDetails(serial,priceWay,priceType);
	}
	
	public void insertTransferFinanceDetail(TransferFinanceDetailDto dto) throws TmsDaoException {
		TmsTransferFinanceDetailDao dao = (TmsTransferFinanceDetailDaoImp) TmsDao.getInstance(TmsDao.TMS_TRANSFER_FINANCE_DETAIL);
		dao.insertTransferFinanceDetail(dto);
	}
}
